<?php
/**
 * bDecorator
 *
 * Traitement du décorateur
 *
 * @package bottleneck
 * @subpackage core
 * @author Thomas Lenoel
 * @copyright 2010 Thomas Lenoel
 * @version 0.1
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License version 3
 */
class bDecorator {

    public $path;

    public $type;

    public function __construct($type) {
        $this->type = $type;
        $this->path = APP_PATH.'var/decorators/'.$this->type.'decorator.tpl';
    }

    public function getFullTemplate($content) {
        $f = file($this->path);
        $f = str_replace('{$BODY_TPL', $content, $f);
        return $f;
    }

}
?>
